cmake_minimum_required(VERSION 3.12)

project(kernel)

find_package(Eigen3)
# Source/Include files
include_directories("../common")
include_directories(".")
include_directories("Dynamics/")
include_directories("Dynamics/Task_Execution/")
include_directories("FSM/")
include_directories("Motion_Scheduler/")
include_directories("Utilities/")
INCLUDE_DIRECTORIES(${EIGEN3_INCLUDE_DIR})
file(GLOB_RECURSE KERNEL_SOURCE "*.cpp" "*.hpp")

#Static Library
add_library(${PROJECT_NAME} STATIC ${KERNEL_SOURCE})
target_link_libraries(${PROJECT_NAME} common)